package com.aaa.service;

import com.aaa.dao.DeptDao;
import com.aaa.entity.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author C-Q
 * @version 1.1.0
 * @Description: TODO
 * @date 2022/9/28
 */
@Service
public class DeptDaoServiceImpl implements DeptDaoService{
    @Autowired
    private DeptDao deptDao;
    @Qualifier("dept")
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return deptDao.deleteByPrimaryKey(id);
    }
    @Override
    public int insert(Dept record) {
        return insert(record);
    }
    @Override
    public int insertSelective(Dept record) {
        return 0;
    }
    @Override
    public Dept selectByPrimaryKey(Integer id) {
        return null;
    }
    @Override
    public int updateByPrimaryKeySelective(Dept record) {
        return 0;
    }
    @Override
    public int updateByPrimaryKey(Dept record) {
        return 0;
    }

    @Override
    public List<Dept> findAll() {
        List<Dept> all = deptDao.findAll();
        return all;
    }
}
